﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using EzDesk.Apps.Data.Message;
using System.Xml.Linq;
using EzDesk.Utility.Web.Extensions;

namespace EzDesk.DevHelper.DebugLibrary
{
    public class EzDeskMessageInitial : EzDeskInitial, IEzDeskInitial
    {
        public EzDeskMessageContainer db = new EzDeskMessageContainer();
        #region IEzDeskInitial Members

        void IEzDeskInitial.Initialize()
        {
            Debug.WriteLine("开始配置消息系统测试环境...");
            
            db.DeleteTable("SingleMessageSet");
            db.DeleteTable("MessageInboxSet");
            db.DeleteTable("TopicSet");
            
            
            db.SaveChanges();
            Debug.WriteLine("消息数据库已经清除");


            Debug.WriteLine("消息发送模板已经更新");

            //添加消息发送的模板


        }

        void IEzDeskInitial.AddInitializeModule(IEzDeskInitial EzDeskMessageInitial)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
